package com.inke.box.inkemain;


import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;

import com.blankj.utilcode.util.IntentUtils;
import com.blankj.utilcode.util.ToastUtils;
import com.inke.box.R;
import com.inke.box.setting.SettingActivity;

import butterknife.ButterKnife;
import butterknife.OnClick;
import mvp.MVPBaseActivity;


/**
 * MVPPlugin
 *  邮箱 784787081@qq.com
 */

public class InkeMainActivity extends MVPBaseActivity<InkeMainContract.View, InkeMainPresenter> implements InkeMainContract.View {


    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.inke_main_ctivity);
        ButterKnife.bind(this);



    }

    /**
     * 主页菜单项点击事件
     * */
    @OnClick({R.id.main_ordemeal,R.id.main_celerity_payment,R.id.main_payment,R.id.main_member_center,R.id.main_appointment,R.id.main_team,R.id.main_record,R.id.main_message
    ,R.id.main_stings,R.id.main_help})
    public void menuOnclick(View view){
        switch (view.getId()){
            case R.id.main_ordemeal://点餐
                break;
            case R.id.main_celerity_payment://快速结账
                break;
            case R.id.main_payment://收银
                break;
            case R.id.main_member_center://会员中心
                break;
            case R.id.main_appointment://预约
                ToastUtils.showShort("抱歉，暂未开通");
                break;
            case R.id.main_team://排队
                ToastUtils.showShort("抱歉，暂未开通");
                break;
            case R.id.main_record://记录中心
                break;
            case R.id.main_message://消息中心
                ToastUtils.showShort("抱歉，暂未开通");
                break;
            case R.id.main_stings://设置中心
                Intent intent=new Intent(getContext(), SettingActivity.class);
                 startActivity(intent);
                break;
            case R.id.main_help://帮助中心
                ToastUtils.showShort("抱歉，暂未开通");
                break;
        }
    }


}
